home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 13.7 KB | 357 lines | [TEXT/MPS ] |
- /*
- File: GXPrinterDrivers.idl
-
- Contains: This file defines data types and API functions for printer driver development.
-
- Version: Technology: Quickdraw GX 1.1
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
- #ifndef __GXPRINTERDRIVERS_IDL__
- #define __GXPRINTERDRIVERS_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef __SCALERTYPES_IDL__
- #include <ScalerTypes.idl>
- #endif
- #ifndef __GXMESSAGES_IDL__
- #include <GXMessages.idl>
- #endif
- #ifndef __PRINTING_IDL__
- #include <Printing.idl>
- #endif
- #ifndef __GXPRINTING_IDL__
- #include <GXPrinting.idl>
- #endif
-
- #ifdef __SOMIDL__
-
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- /*
- ------------------------------------------------------------------------------
-
- Desktop Printer Constants and Types
-
- --------------------------------------------------------------------------------
- */
- /* Manual feed alert preferences structure for gxManualFeedAlertPrefsType desktop printer resource */
- typedef SOMFourByteStruct gxManualFeedAlertPrefs; /* Derived from a struct of 4 bytes in size */
-
- typedef OpaquePtr gxManualFeedAlertPrefsPtr; /* Substituted OpaquePtr for “gxManualFeedAlertPrefs*” */
-
- typedef OpaquePtr gxManualFeedAlertPrefsHdl; /* Substituted OpaquePtr for “gxManualFeedAlertPrefsPtr*” */
-
- /* Constants for the alertFlags field of gxManualFeedAlertPrefs.*/
- /* Driver output settings structure for desktop printer gxDriverOutputType resource */
- typedef SOMLargeStruct gxDriverOutputSettings; /* Derived from a struct of 8 bytes in size */
-
- typedef OpaquePtr gxDriverOutputSettingsPtr; /* Substituted OpaquePtr for “gxDriverOutputSettings*” */
-
- typedef OpaquePtr gxDriverOutputSettingsHdl; /* Substituted OpaquePtr for “gxDriverOutputSettingsPtr*” */
-
- /* Constants for the outputSettings field of gxDriverOutputSettings. */
- /*
- ------------------------------------------------------------------------------
-
- Printing Driver Constants and Types
-
- --------------------------------------------------------------------------------
- */
- /* Buffering and IO preferences-- this structure mirrors the 'iobm' resource */
- typedef SOMLargeStruct gxIOPrefsRec; /* Derived from a struct of 24 bytes in size */
-
- typedef OpaquePtr gxIOPrefsPtr; /* Substituted OpaquePtr for “gxIOPrefsRec*” */
-
- typedef OpaquePtr gxIOPrefsHdl; /* Substituted OpaquePtr for “gxIOPrefsPtr*” */
-
- /* Constants for the communicationsOptions field of IOPrefsRec. */
- /* Information about writing to a file */
- typedef SOMLargeStruct gxPrintDestinationRec; /* Derived from a struct of 106 bytes in size */
-
- typedef OpaquePtr gxPrintDestinationPtr; /* Substituted OpaquePtr for “gxPrintDestinationRec*” */
-
- typedef OpaquePtr gxPrintDestinationHdl; /* Substituted OpaquePtr for “gxPrintDestinationPtr*” */
-
- /* This structure is the content of each cell in the standard PACK LDEF */
- typedef SOMLargeStruct gxPortListRec; /* Derived from a struct of 270 bytes in size */
-
- typedef OpaquePtr gxPortListPtr; /* Substituted OpaquePtr for “gxPortListRec*” */
-
- /*
- ------------------------------------------------------------------------------
-
- Printing Driver Constants for resources in the desktop printer
-
- --------------------------------------------------------------------------------
- */
- /* ----------------------------------• 'prod' •---------------------------------- */
- /*
- For PostScript devices, the device and version names of the device.
- (0) product name is of type PString
- (1) version is of type PString
- (2) revision is of type PString
- (3) vm available is of type long
- (4) font stream type is of type scalerStreamTypeFlag
- (5) language level is of type long
- */
- /* PPD support definitions*/
- typedef SOMLargeStruct gxPPDFileInfoRec; /* Derived from a struct of 17 bytes in size */
-
- typedef OpaquePtr gxPPDFileInfoPtr; /* Substituted OpaquePtr for “gxPPDFileInfoRec*” */
-
- typedef OpaquePtr gxPPDFileInfoHdl; /* Substituted OpaquePtr for “gxPPDFileInfoPtr*” */
-
- /*
- ------------------------------------------------------------------------------
-
- Printing Driver Constants for status alerts
-
- --------------------------------------------------------------------------------
- */
- /* Structure passed in statusBuffer of StatusRecord for manual feed alert */
- typedef SOMLargeStruct gxManualFeedRecord; /* Derived from a struct of 34 bytes in size */
-
- /* Structure passed in statusBuffer of StatusRecord for out of paper alert */
- typedef SOMLargeStruct gxOutOfPaperRecord; /* Derived from a struct of 32 bytes in size */
-
- /* The DITL id for the auto feed button in the manual feed alert */
- /* Status resource id for the alerts */
- /* Status resource indices for alerts */
- /* Allocation sizes for status buffers needed for automatic alerts */
- /*
- ------------------------------------------------------------------------------
-
- Old Application Support
-
- --------------------------------------------------------------------------------
- */
- /* The format of a 'cust' resource */
- typedef SOMLargeStruct gxCustomizationRec; /* Derived from a struct of 12 bytes in size */
-
- typedef OpaquePtr gxCustomizationPtr; /* Substituted OpaquePtr for “gxCustomizationRec*” */
-
- typedef OpaquePtr gxCustomizationHdl; /* Substituted OpaquePtr for “gxCustomizationPtr*” */
-
- /* The format of a 'resl' resource */
- typedef SOMLargeStruct gxResolutionRec; /* Derived from a struct of 16 bytes in size */
-
- typedef OpaquePtr gxResolutionPtr; /* Substituted OpaquePtr for “gxResolutionRec*” */
-
- typedef OpaquePtr gxResolutionHdl; /* Substituted OpaquePtr for “gxResolutionPtr*” */
-
- /*
-
- Constants for the "universal" print record.
-
- */
- /* Constant for version number in universal print record */
- /* Constants for feed field in universal print record */
- /* Constants for options field in universal print record */
- /* Constants for orientation field in universal print record */
- /* Constants for qualityMode field in universal print record */
- /* Constants for firstTray and remainingTray fields in universal print record */
- /* Constants for coverPage field in universal print record */
- /* Constants for headMotion field in universal print record */
- /* Constants for saveFile field in universal print record */
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- /* The format of the "universal" print record */
- typedef SOMLargeStruct gxUniversalPrintRecord; /* Derived from a struct of 120 bytes in size */
-
- typedef OpaquePtr gxUniversalPrintRecordPtr; /* Substituted OpaquePtr for “gxUniversalPrintRecord*” */
-
- typedef OpaquePtr gxUniversalPrintRecordHdl; /* Substituted OpaquePtr for “gxUniversalPrintRecordPtr*” */
-
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- /*
- ------------------------------------------------------------------------------
-
- Compatibility Printing Messages
-
- --------------------------------------------------------------------------------
- */
- /*
- ------------------------------------------------------------------------------
-
- Raster Driver Contants and Types
-
- --------------------------------------------------------------------------------
- */
- typedef long gxRasterPlaneOptions;
-
- /* Input structure for setting up the offscreen */
- typedef SOMLargeStruct gxPlaneSetupRec; /* Derived from a struct of 68 bytes in size */
-
- /* Constants for planeOptions field in gxPlaneSetupRec */
- typedef SOMLargeStruct gxOffscreenSetupRec; /* Derived from a struct of 362 bytes in size */
-
- /* The format of one plane in the offscreen planar area */
- typedef SOMLargeStruct gxOffscreenPlaneRec; /* Derived from a struct of 48 bytes in size */
-
- /* The format of an entire offscreen area */
- typedef SOMLargeStruct gxOffscreenRec; /* Derived from a struct of 54 bytes in size */
-
- typedef OpaquePtr gxOffscreenPtr; /* Substituted OpaquePtr for “gxOffscreenRec*” */
-
- typedef OpaquePtr gxOffscreenHdl; /* Substituted OpaquePtr for “gxOffscreenPtr*” */
-
- typedef long gxRasterRenderOptions;
-
- /* Structure that mirrors 'rdip' resource. */
- typedef SOMLargeStruct gxRasterPrefsRec; /* Derived from a struct of 96 bytes in size */
-
- /* Constants for renderOptions field in gxRasterPrefsRec. */
- typedef OpaquePtr gxRasterPrefsPtr; /* Substituted OpaquePtr for “gxRasterPrefsRec*” */
-
- typedef OpaquePtr gxRasterPrefsHdl; /* Substituted OpaquePtr for “gxRasterPrefsPtr*” */
-
- typedef long gxRasterPackageOptions;
-
- /* Structure that mirrors 'rpck' resource. */
- typedef SOMLargeStruct gxRasterPackageRec; /* Derived from a struct of 16 bytes in size */
-
- typedef OpaquePtr gxRasterPackagePtr; /* Substituted OpaquePtr for “gxRasterPackageRec*” */
-
- typedef OpaquePtr gxRasterPackageHdl; /* Substituted OpaquePtr for “gxRasterPackagePtr*” */
-
- /* Constants for packageOptions field in gxRasterPackageRec. */
- /* Structure for RasterPackageBitmap message */
- typedef SOMLargeStruct gxRasterPackageBitmapRec; /* Derived from a struct of 18 bytes in size */
-
- /* Structure of number record in gxRasterPackageControlsRec */
- typedef SOMLargeStruct gxStandardNumberRec; /* Derived from a struct of 70 bytes in size */
-
- typedef OpaquePtr gxStandardNumberPtr; /* Substituted OpaquePtr for “gxStandardNumberRec*” */
-
- /* Structure that mirrors 'ropt' resource */
- typedef SOMLargeStruct gxRasterPackageControlsRec; /* Derived from a struct of 148 bytes in size */
-
- typedef OpaquePtr gxRasterPackageControlsPtr; /* Substituted OpaquePtr for “gxRasterPackageControlsRec*” */
-
- typedef OpaquePtr gxRasterPackageControlsHdl; /* Substituted OpaquePtr for “gxRasterPackageControlsPtr*” */
-
- /* Raster imaging system imageData structure */
- typedef SOMLargeStruct gxRasterImageDataRec; /* Derived from a struct of 562 bytes in size */
-
- typedef OpaquePtr gxRasterImageDataPtr; /* Substituted OpaquePtr for “gxRasterImageDataRec*” */
-
- typedef OpaquePtr gxRasterImageDataHdl; /* Substituted OpaquePtr for “gxRasterImageDataPtr*” */
-
- /*
- ------------------------------------------------------------------------------
-
- Raster Driver Imaging Messages
-
- --------------------------------------------------------------------------------
- */
- /*
- ------------------------------------------------------------------------------
-
- Vector Driver Contants and Types
-
- --------------------------------------------------------------------------------
- */
- /* Vector device halftone component record */
- typedef SOMLargeStruct gxVHalftoneCompRec; /* Derived from a struct of 8 bytes in size */
-
- /* Vector device halftone record */
- typedef SOMLargeStruct gxVHalftoneRec; /* Derived from a struct of 40 bytes in size */
-
- /* Vector shape rendering information */
- typedef long gxVectorShapeOptions;
-
- typedef SOMLargeStruct gxVectorShapeDataRec; /* Derived from a struct of 20 bytes in size */
-
- /* Constants for shapeOptions field in gxVectorShapeDataRec. */
- /* Vector device rendering information */
- typedef long gxVectorRenderOptions;
-
- /* Vector imaging system imageData structure */
- typedef SOMLargeStruct gxVectorImageDataRec; /* Derived from a struct of 112 bytes in size */
-
- typedef OpaquePtr gxVectorImageDataPtr; /* Substituted OpaquePtr for “gxVectorImageDataRec*” */
-
- typedef OpaquePtr gxVectorImageDataHdl; /* Substituted OpaquePtr for “gxVectorImageDataPtr*” */
-
- /* Constants for renderOptions field in gxVectorImageDataRec. */
- /*
- ------------------------------------------------------------------------------
-
- Vector Driver Imaging Messages
-
- --------------------------------------------------------------------------------
- */
- /*
- ------------------------------------------------------------------------------
-
- PostScript Driver Contants and Types
-
- --------------------------------------------------------------------------------
- */
- /* PostScript glyphs record */
- typedef SOMLargeStruct gxPrinterGlyphsRec; /* Derived from a struct of 28 bytes in size */
-
- /* PostScript device rendering information */
- typedef long gxPostScriptRenderOptions;
-
- typedef SOMLargeStruct gxPostScriptImageDataRec; /* Derived from a struct of 34 bytes in size */
-
- typedef OpaquePtr gxPostScriptImageDataPtr; /* Substituted OpaquePtr for “gxPostScriptImageDataRec*” */
-
- typedef OpaquePtr gxPostScriptImageDataHdl; /* Substituted OpaquePtr for “gxPostScriptImageDataPtr*” */
-
- /* Constants for renderOptions field in gxPostScriptImageDataRec. */
- /* Structure for gxPostScriptGetProcSetList / gxPostScriptDownLoadProcSetList */
- typedef SOMLargeStruct gxProcSetListRec; /* Derived from a struct of 18 bytes in size */
-
- typedef OpaquePtr gxProcSetListPtr; /* Substituted OpaquePtr for “gxProcSetListRec*” */
-
- typedef OpaquePtr gxProcSetListHdl; /* Substituted OpaquePtr for “gxProcSetListPtr*” */
-
- /* Possible results of querying printer (returned by gxPostScriptQueryPrinter message) */
- /*
- ------------------------------------------------------------------------------
-
- PostScript Driver Imaging Messages
-
- --------------------------------------------------------------------------------
- */
- /* Device control messages */
- /* Device communication messages */
- /* Proc set management messages */
- /* Font management messages */
- /* Document structuring and formatting messages */
- /* Page structuring and formatting messages */
- /* Shape imaging messages */
- /*
- ------------------------------------------------------------------------------
-
- Driver API Functions
-
- --------------------------------------------------------------------------------
- */
- /* Constants for printer gxViewDevice bitmaps. */
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- #endif
-
- #endif /* __SOMIDL__ */
-
- #endif /* __GXPRINTERDRIVERS_IDL__ */
-
-